package com.sinosoft.web.common;

import org.springframework.web.bind.WebDataBinder;
import org.springframework.web.bind.support.ConfigurableWebBindingInitializer;
import org.springframework.web.context.request.WebRequest;

/**
 * Created by Administrator on 2015/12/23.
 */
public class SinoConfigurableWebBindingInitializer extends ConfigurableWebBindingInitializer {

    private int autoGrowCollectionLimit;

    public int getAutoGrowCollectionLimit() {
        return autoGrowCollectionLimit;
    }

    public void setAutoGrowCollectionLimit(int autoGrowCollectionLimit) {
        this.autoGrowCollectionLimit = autoGrowCollectionLimit;
    }


    public void initBinder(WebDataBinder binder, WebRequest request) {
        super.initBinder(binder, request);
        binder.setAutoGrowCollectionLimit(autoGrowCollectionLimit);
    }
}
